<head>
	<link rel="stylesheet" href="assets/css/review-view.css">
</head>
<?php
$bcount = (int)$conf->a['blogs-count-digradio'];
$acount = (int)$conf->a['articles-count-digradio'];
?>
<div class='c-box-600 c-box c-box-left' id='reviewview'>
 <h3>Reviews</h3>

 <?php
		$ctr = 1;
		foreach($posts as $x)
		{
			if($x['post_type']=='review'){

				
							
						?>
		
							<li>
							<span class="av-text-title">
							<a href='review/<?PHP echo $x["id"];?>/<?PHP echo csq($x["title"]);?>' title="<?PHP  echo strip_tags($x['secondary']);?>"><?PHP  echo $x['title']." ";?></a>								</span>
							   <span class="av-imageholder">
							   		<a href='review/<?PHP echo $x["id"];?>/<?PHP echo csq($x["title"]);?>' title="<?PHP  echo strip_tags($x['secondary']);?>">
							   			<img src="a/show-resized.php?file=<?PHP echo $x['image'];?>&x=200&y=100" height="100" width="200" alt="<?PHP  echo $x['title'];?>">
							   		</a>	
							   </span>
								<span class="av-text">

								    </span>
								    <span class="av-text-content">
								    <?PHP
								     	$paragraph = explode (' ', $x['content']);
  										$paragraph = array_slice ($paragraph, 0, 30);
  										$paragraph = implode (' ', $paragraph);
								    	echo $paragraph."...";?>
									<a href='review/<?PHP echo $x["id"];?>/<?PHP echo csq($x["title"]);?>' title="<?PHP  echo strip_tags($x['secondary']);?>">Read More</a>
								    </span>

								
							</li>
						
							
						
							
						<?php	
							echo "<hr>";
						$ctr++;
		          }
       
		}
	   
		?>

 
</div>

<div class='c-box-headline c-box-300 ad-med-300-250 c-box-right'>
        <?PHP

        global $conf;
        $ad_m = new ads();
        $ad_m->zone=5;
        $ad_m->category=$conf->qm[1];
        $ad_m->serve_image_ad();
        ?>

</div>
<div class='c-box-300 c-box blog' id='article-home'>
      	<h3>News</h3>
      	<?php
         
            	$items=0;
               foreach($posts as $x)
               {
               if($x['post_type']=='news' && $x['w']<=$acount){	
					?>
					
						<li  class='article-image' id="article-image-<?php echo $x['id'];?>">	
            			<a class='article-image-holder' href='news/<?PHP echo $x["id"];?>/<?PHP echo csq($x["title"]);?>'>
            			<img height="60" width ="60" src="<?php echo ap($x['thumb']);?>" ></a>
							<span class='ptitle'><a href='news/<?PHP echo $x["id"];?>/<?PHP echo csq($x["title"]);?>'>
							<?PHP echo $x['title'] ?></a></span>
							<?PHP echo $x['secondary']; ?>
						</li>					
					<?php               
						}
               }
         ?>
	<li class="more-right">
          	<a class='mgalleries' href="newsview/<?php echo $parent['id']; ?>">More News</a>
          </li>
      </div>
<div class='c-box-300 c-box blog' id='article-home'>
      	<h3>Blogs</h3>
      	<?php
         
            	$items=0;
               foreach($posts as $x)
               {
               if($x['post_type']=='blog' && $x['w']<=$bcount){	
					?>
					
						<li  class='article-image' id="article-image-<?php echo $x['id'];?>">	
            			<a class='article-image-holder' href='blog/<?PHP echo $x["id"];?>/<?PHP echo csq($x["title"]);?>'>
            			<img height="60" width ="60" src="<?php echo ap($x['thumb']);?>" ></a>
							<span class='ptitle'><a href='blog/<?PHP echo $x["id"];?>/<?PHP echo csq($x["title"]);?>'>
							<?PHP echo $x['title'] ?></a></span>
							<?PHP echo $x['secondary']; ?>
						</li>					
					<?php               
						}
               }
         ?>
         <li class="more-right">
          	<a class='mgalleries' href="blogview/<?php echo $parent['id']; ?>">More Blogs</a>
          </li>
      </div>
       <div class='c-box-300 c-box c-box-right' id='article-home'>
      	<h3>Features</h3>
      	<?php
         
            	$items=0;
               foreach($posts as $x)
               {
               if($x['post_type']=='article' && $x['w']<=$acount){	
					?>
					
						<li  class='article-image' id="article-image-<?php echo $x['id'];?>">	
            			<a class='article-image-holder' href='article/<?PHP echo $x["id"];?>/<?PHP echo csq($x["title"]);?>'>
            			<img height="60" width ="60" src="<?php echo ap($x['thumb']);?>" ></a>
							<span class='ptitle'><a href='article/<?PHP echo $x["id"];?>/<?PHP echo csq($x["title"]);?>'>
							<?PHP echo $x['title'] ?></a></span>
							<?PHP echo $x['secondary']; ?>
						</li>					
					<?php               
						}
               }
         ?>
	<li class="more-right">
          	<a class='mgalleries' href="features/<?php echo $parent['id']; ?>">More Features</a>
          </li>
      </div>
